<template>
  <div>
    <div class="title">
      <h1>添 加 制 造 商</h1>
    </div>
    <manufacturer-form @save-manufacturer="addManufacturer" :model="model">
    </manufacturer-form>
  </div>
</template>

<script>
import ManufacturerForm from "@/components/ManufacturerForm.vue";
export default {
  data() {
    return {
      model: {},
    };
  },
  methods: {
    addManufacturer(model) {
      this.$store.dispatch("addManufacturer", {
        manufacturer: model,
      });
    },
  },
  components: {
    "manufacturer-form": ManufacturerForm,
  },
};
</script>